package com.yxuan.springboot.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author zchao
 *    Information实体类
 * @date 2023-05-23 16:26:15
 */
@Data
@ApiModel(description = "资讯表")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Information implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "文章id（主键）")
	  private Integer id;
	  @ApiModelProperty(value = "作者")
	  private String authorbiati;
	  @ApiModelProperty(value = "标题")
	  private String headline;
	  @ApiModelProperty(value = "文章封面")
	  private String cover;
	  @ApiModelProperty(value = "内容")
	  private String content;
	  @ApiModelProperty(value = "类别")
	  private String articleCategory;
      //创建时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date addtime;
      //修改时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date updtime;
	  @ApiModelProperty(value = "来源")
	  private String source;
	  @ApiModelProperty(value = "阅读量")
	  private String readNumber;
	  @ApiModelProperty(value = "点赞量")
	  private String likeNumber;
	  @ApiModelProperty(value = "收藏量")
	  private String collectionNumber;
	  @ApiModelProperty(value = "分享次数")
	  private String shareNumber;
	  @ApiModelProperty(value = "评论数量")
	  private String commentNumber;
	  @ApiModelProperty(value = "置顶（0不置顶，1置顶）")
	  private String top;
	  @ApiModelProperty(value = "逻辑删除: 0未删除,1已删(默认0)")
	  private String deleteState;

	  //文章类别名称（联表查询）
	  private String classification;


}
